package com.chatdating.entity.dto;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;
import org.springframework.web.multipart.MultipartFile;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import java.io.File;

/**
 * 用户实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user")
@Where(clause = "deleted = 0") // 逻辑删除过滤
public class RegisterDto {
    @GeneratedValue(strategy = GenerationType.IDENTITY) // 自增主键
    //主键
    private int id;
    //用户名字
    private String username;
    //真实姓名
    private String realname;
    //密码
    private String password;
    //年龄
    private Integer age;
    //手机号
    private String phone;
    //学信网照片
    private String xuexinPhoto;
    //身份证照片
    private String idCardPhoto;
    //性别
    private String gender;
    //地址
    private String address;
    //头像
    private String head;
}
